<?php

class Application_Form_Productcategory extends Zend_Form {
    
    public function init() {
        $this->setName('Productcategory');
        
        $product_category_id = new Zend_Form_Element_Hidden('product_category_id');
                
        $product_id = new Zend_Form_Element_Select('product_id');
        $product_id->setLabel('Tên sản phẩm :')
                        ->setRequired(true);
                
        $category_id = new Zend_Form_Element_Select('category_id');
        $category_id->setLabel('Tên category :')
                        ->setRequired(true);
     
               
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($product_id, $category_id, $product_category_id, $btn_submit, $btn_cancel
        ));
    }
}